<template>
    <div>
        <Title title="图册管理"></Title>
        <div class="body">
            <GalleryQuery></GalleryQuery>
            <div class="bbx">
                <div @click="wen" class="shang">
                    <img src="../assets/images/添加@3x.png" alt="">
                    <p>文件上传</p>
                </div>
                <UploadChange style="margin: 16px 0" class="up"></UploadChange>
            </div>
            <div class="hr"></div>
            <Galleryblock v-if="!$store.state.show"></Galleryblock>
            <GalleryThumbnail v-else></GalleryThumbnail>
            <Gallerypopup class="pop"></Gallerypopup>
        </div>
    </div>
</template>

<script>
    let pop =document.getElementsByClassName("pop")
    import Title from "../components/title"
    import GalleryQuery from "../components/Query/GalleryQuery";
    import UploadChange from "../components/UploadChange";
    import Gallerypopup from "../components/popup/Gallerypopup";
    import Galleryblock from "../components/Block/Galleryblock";
    import GalleryThumbnail from "../components/Thum/GalleryThumbnail";
    export default {
        name: 'Home',
        data() {
            return {

            };
        },
        methods: {
            wen(){
                pop[0].style.display="block"
            }
        },
        components: {
            Title,
            GalleryQuery,
            GalleryThumbnail,
            Galleryblock,
            UploadChange,
            Gallerypopup
        }
    }
</script>

<style scoped lang="less">
    .body {
    padding: 24px;
    width: 1136px;
    height: 758px;
    background: #FFFFFF;
    border-radius: 2px;
    border: 1px solid #E9E9E9;
}
    .hr{
        width: 1088px;
        height: 1px;
        background: #E9E9E9;
    }

    .bbx {
        height: 64px;
        .shang {
            width: 106px;
            height: 32px;
            background-color: rgba(24, 144, 255, 1);
            float: left;
            margin-top: 16px;
            color: white;
            cursor: pointer;
            img{
                float: left;
                width: 14px;
                height: 14px;
                margin-left: 14px;
                margin-top: 9px;
            }
            p{
                float:left;
                margin-left: 4px;
                margin-top: 5px;
            }
        }

        .up {
            float: left;
        }
    }
</style>
